<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>打开关闭窗口</title>
	</head>
	<body>
		<p>
		<input type="button" value="打开窗口" />
		</p>
		<p>
		<input type="button" value="关闭窗口" />
		</p>
		<p>
		<input type="button" value="检查窗口是否关闭" />
		</p>
		<script>
			function openWin(){
				
			}
			function closeWin(){
				
			}
			function checkWin(){
				var s;
				if(win){
					s=(win.closed?'窗口已关闭':'窗口打开着 还未关闭');
				}else{
					s="窗口没有被打开"
				}
			}
		</script>
	</body>
</html>
